package cn.stylefeng.guns.modular.gridsystem.mapper;

import cn.stylefeng.guns.modular.gridsystem.model.param.BizGatewayTemperatureParam;
import cn.stylefeng.guns.modular.gridsystem.model.param.BizUploadScoreParam;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import cn.stylefeng.guns.modular.gridsystem.entity.BizGatewayTemperature;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 网关温度 Mapper 接口
 *
 * @author ssy
 * @date 2022/08/12 16:00
 */
public interface BizGatewayTemperatureMapper extends BaseMapper<BizGatewayTemperature> {

    Page<Map<String,Object>> pageList(Page page, @Param("param") BizGatewayTemperatureParam param, @Param("list") String[] list);

    List<Integer> listByBeforeTime();

    /**
     * echart查询时间段的温度
     *
     * @author rdp
     * @date 2022/11/02 09:58
     */
    List<BizGatewayTemperature> getTemperatureByDate(@Param("param") BizGatewayTemperatureParam bizGatewayTemperatureParam);
}
